package xx.services.util;

public class Constants
{
    private Constants()
    {
    }

    /** 登陆用户表对象 */
    public static final String ACCOUNT = "account";

    /** 登陆用户表PK */
    public static final String USER_ID = "user_id";

    /** 登陆的用户名 */
    public static final String USERNAME = "username";

    /** 登陆的用户角色 */
    public static final String ROLE = "role";

    /** 登陆密码 */
    public static final String PASSWORD = "password";

    /** 是否已登陆 */
    public static final String IS_LOGIN = "is_login";

    public static final String JSESSIONID = "jsessionid";

    /** Restful路径前缀，在客户端可以通过services或servlet的方式访问 */
    public static final String RESTFUL_ROOT_PATH = "/{root: services|servlet}";

    /** 公共Restful路径前缀，对所有用户公开 */
    public static final String RESTFUL_PUB_PATH = "/pub";

    /** 受保护的Restful路径前缀，对登陆后的用户公开 */
    public static final String RESTFUL_MANAGE_PATH = "/manage";

    /** Restful公共接口路径前缀(/{root: services|servlet}) */
    public static final String RESTFUL_ROOT_PUBLIC_PATH = "/{root: services1|servlet1}";

    /** Restful私有接口路径前缀(/{root: services|servlet}/manage) */
    public static final String RESTFUL_ROOT_PRIVATE_PATH = "/{root: services1|servlet1}/manage";

    /** 宽度 */
    public static final String WIDTH = "width";

    /** 长度 */
    public static final String HEIGHT = "height";

    /** 中等大小缩略图宽度 */
    public static final String MWIDTH = "mwidth";

    /** 中等大小缩略图长度 */
    public static final String MHEIGHT = "mheight";

    /** 是否为图片增加水印 */
    public final static String IS_WATER = "is_water";

    /** 是否剪切 */
    public final static String IS_CUT = "is_cut";

    /** 图片验证码 */
    public static final String VERIFY_CODE = "verify_code";

    /** 总数量 */
    public static final String TOTAL = "total";

    /** 一页显示多少条数据 */
    public static final String PAGESIZE = "pagesize";

    /** pagesize的默认值（20） */
    public static final int PAGESIZE_DEFAULT = 20;

    /** 页码 */
    public static final String PAGENO = "pageno";

    /** 页码的默认值（1） */
    public static final int PAGENO_DEFAULT = 1;

    /** 是否需要返回总页数 */
    public static final String IS_TOTAL = "is_total";

    /** 返回总页数值，默认为false，不返回 */
    public static final boolean IS_TOTAL_DEFAULT = false;

    /** sql操作条件，直接加在where后 */
    public static final String CONDITION = "condition";

    /** 排序字段 */
    public static final String ORDERFIELD = "orderfield";

    /** 需要返回的字段集,为空时表示返回所有字段 */
    public static final String FIELDS = "fields";

    public static final String X_FORWARDED_FOR = "x-forwarded-for";

    public static final String HOST = "host";

    public static final String USER_AGENT = "user-agent";

    /** 保存页面html的文件夹 */
    public static final String PAGE_HTML_FOLDER = "page_html_folder";
}
